$j = $;

$j(function()
{
	if (!navigator.cookieEnabled)
	{
		$j('#content').prepend('<div class="featureMissing">U moet cookies hebben ingeschakeld.</div>');
	}
	
	$j('.generated-form').append
	(
		'<div class="form-controls">\
			<div class="form-cancel-button">\
				<a href="/Pizza"><img src="/Pizza/img/frank-cancel.jpg" alt="Annuleren" /></a>\
			</div>\
			<div class="form-next-button">\
				<a href="#next"><img src="/Pizza/img/frank-next.jpg" alt="Volgende Stap" /></a>\
			</div>\
		</div>'
	);
	
	$j('.form-next-button').click(function()
	{
		$j(this).closest('form').get(0).submit();
		
		return false;
	});
	
	$j('#expirationDate').datePicker(
	{
		createButton: false,
		clickInput: true
	});
});

